package lad02.tset12;

public class Circle extends Rectangle{
    double radius;
    final double PI = 3.1415926;

    @Override
    public double getPerimeter() {
        System.out.println("圆的周长:");
        return radius * 2 * PI;
    }

    @Override
    public double getArea() {
        System.out.println("圆的面积:");
        return radius * radius * PI;
    }
}
